			<!-- Book Tour -->
           
            <?php 
            if(!isset($_GET['hotelID']) || $_GET['hotelID']=="" )
            {
            	$location=get_bloginfo('home').'/hotels';
            	wp_redirect($location);
            }
            else
            {
            	$hotel_ID = $_GET['hotelID'];
	             $term ='';
	             $currentID = $hotel_ID;
	            if(isset($_POST['captcha']) && ($_POST['captcha'] != $_SESSION['ma_xac_nhan']))
	            {
	            	$resultCaptcha = "Enter Security code Invalid!,try again.";
	            	$_SESSION['booking_hote_data'] = $_POST;
	            }
	            else
	            { 
	            	$resultCaptcha = '';
	            	$_SESSION['booking_hote_data'] = null;
	            }
            	if(wp_verify_nonce($_POST['act_submit_book_tour'],'act_submit_book_tour') && $_POST['next_step']=="next_step" && $_POST['captcha'] == $_SESSION['ma_xac_nhan'])
	 			{
	 						if(isset($_POST['payment']) && $_POST['payment']=="Paypal")  //thanh toan paypal
 							{
 								require_once TEMPLATEPATH.'/views/hotel/view-book-hotel-process.php';
 								if($orderID)
 								{
	 								$item_name		= 'Booking Hotel';
									$item_amount	= $_POST['hidden_hotel_price'];
									$currency_code	= 'USD';
									$shipping		= 0;
									$quantity		= $_POST['number_of_room'];
									//require_once TEMPLATEPATH.'/views/hotel/view-book-hotel-process.php';
									$item_number	= $orderID;
									create_url_paypal($item_name,$item_amount,$currency_code,$item_number,$shipping,$quantity);
 								}
 								else {
 									echo 'Error Paypal payment!';
 								}	
	 						}
 							else //thanh toan bang tien mat hoac tai quay thu ngan
 							{
 								//print_r($_POST);
	 							//require_once TEMPLATEPATH.'/orders/process.php';
	 							$email_support = "email_support_hotel";
	 							require_once TEMPLATEPATH.'/views/hotel/view-book-hotel-process.php';
	 							if($orderID)
	 							{		 								
	 								require_once TEMPLATEPATH.'/views/book/view-hotel-tour-thanks.php';
	 							}	 							
 							}
	 			}
	 			else 
	 			{
	 			?>
	 		<style>
			.content-box-1
			{
				padding-top:0;	
			}
			</style>
            <div id="content" class="page-book-tour">
            	<div class="content-box-1">
            		<!-- <span class="top-tabs-2"></span> -->            	
	                <form action="" method="post">                	
	                    <?php  
	                    require_once TEMPLATEPATH.'/views/hotel/view-book-hotel-form.php';
	                    require_once TEMPLATEPATH.'/views/book/view-payment-form.php'; 
                     	require_once TEMPLATEPATH.'/views/hotel/view-similar-hotel.php';
                    ?>
                    <?php wp_nonce_field('act_submit_book_tour','act_submit_book_tour');?>
	                 </form>
              </div>
              <?php include TEMPLATEPATH.'/views/testimonial/view-home-testimonial.php';?>
            </div> 
            <?php 	
	 			}
            }
            ?>       
            
            <!-- End Book Tour -->